import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { ArticleV1AdminController } from './article.v1-admin.controller';
import { ArticleV1Controller } from './article.v1.controller';
import { ArticleModel } from './article.model';
import { ArticleService } from './article.service';
import { ArticleExtModel } from '@/module/article-ext/article-ext.model';
import { MessageModule } from '@/module/message/message.module';

@Module({
  imports: [
    TypeOrmModule.forFeature([
      ArticleModel,
      ArticleExtModel,
    ]),
    MessageModule,
  ],
  controllers: [
    ArticleV1AdminController,
    ArticleV1Controller,
  ],
  providers: [ArticleService],
})
export class ArticleModule {}
